//
//  TableViewCell1.m
//  MeiShiDa
//
//  Created by zby on 15/6/30.
//  Copyright (c) 2015年 zby. All rights reserved.
//

#import "TableViewCell1.h"

@implementation TableViewCell1

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        CGRect tempFrame = [[UIScreen mainScreen] bounds];
        CGFloat tempWidth = tempFrame.size.width/6;
        CGFloat tempHeight = tempFrame.size.height/6;
        self.CellImageView = [[UIImageView alloc] initWithFrame:CGRectMake(tempFrame.size.width/9, 4, tempWidth*5, 100)];
        self.title = [[UILabel alloc] initWithFrame:CGRectMake(15, (tempHeight-4)*4.7/6.0,300, self.frame.size.height/6)];
        [_title setFont:[UIFont fontWithName:@"Helvetica-Bold" size:15]];
        [self.contentView addSubview:self.CellImageView];
        [self.contentView addSubview:self.title];
    }
    return self;
}

@end



//@property (nonatomic,strong) UILabel* title;
//@property (nonatomic,strong) UIImageView* CellImageView;